//
// Created by iguilty on 2022-01-14.
//

#include "Context.h"
#include "Strategy.h"
#include <iostream>
using namespace std;

class Strategy;

Context::Context(Strategy *strategy) {
    _strategy = strategy;
}

Context::~Context() {
    if (!_strategy){
        delete _strategy;
    }
}

void Context::DoAction() {
    _strategy->AlgrithmInterface();
}